import { defineConfig } from 'vite';
import path from 'node:path'
import vue from '@vitejs/plugin-vue';
import createVitePlugins from './vite/plugins';
// https://vite.dev/config/
export default defineConfig(({ mode, command }) => {

  return {
    plugins: [...createVitePlugins(mode, command === 'build'), vue()],
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src'),
        '#': path.resolve(__dirname, 'src/types'),
      },
    },
  }
});
